package com.test.ykh;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-11-05
 * Time: 10:07
 */
@Component
public class User {
    private int id;
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(){

    }
    public User(int id, String name){
        this.id = id;
        this.name = name;
    }

    public void test(){
        System.out.println("测试=============");
    }
    /*
    public static void sayHi() {
        System.out.println("User");
    }*/
}
